package designpattern.observer;

/**
 * TODO:类描述
 *
 * @className: Student
 * @packageName: designpattern.observer
 * @author: Zhuhj
 * @version: V1.0
 * @date: 2021/4/18 22:16
 */
public class Student implements IObserver{
    private String name;
    private String tphnoe;
    public Student(String name){
        this.name =name;
    }
    @Override
    public void update(Object obj) {
        tphnoe = (String)obj;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getTphnoe() {
        return tphnoe;
    }

    public void setTphnoe(String tphnoe) {
        this.tphnoe = tphnoe;
    }
}
